package com.gzqylc.docker.extend.auth.domain;

import com.gzqylc.lang.Comment;
import com.gzqylc.lang.web.base.BaseEntitySimple;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.FieldNameConstants;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @Desc： 基础部门表
 * @ClassName BaseDept
 * @Author 孔晓文
 * @Date 2022/3/3 上午10:22
 */
@Getter
@Setter
@Entity
@FieldNameConstants
@Table(name = "base_dept")
public class BaseDept extends BaseEntitySimple {

    @Comment("父级部门id")
    private String parentDeptId;

    @Comment("部门名称")
    private String deptName;

    @Comment("显示顺序")
    private Integer seq;

    @Comment("负责人信息")
    @ManyToOne
    private BaseUser leader;

    @Comment("部门状态 true 启用 false停用")
    private Boolean status;
}
